import Vue from 'vue'

export function fetchManHourLists(opts) {
    return Vue.axios.post('/workinghours/findWorkinghoursList.do', {
        departmentName: opts.departmentId, // 部门ID
        status: opts.status, // 状态
        outsourcerCode: opts.outsourcerCode, // 外包人员编号
        outsourcerName: opts.outsourcerName, // 外包人员名称
        startDate: opts.startDate, // 开始日期
        endDate: opts.endDate, // 结束日期
        postCode: opts.postCode, // 岗位名称
        currentPage: opts.currentPage, // 当前页
        pageSize: opts.pageSize, // 每页条数
    });
}


export function fetchManHourDetail(opts) {
    return Vue.axios.post('/workinghours/findWorkinghoursDetail.do', {
        id: opts.id
    });
}